package com.cr.sync.service.impl;

import com.alibaba.fastjson2.JSON;
import com.cr.common.utils.StringUtils;
import com.cr.sync.domain.TbSyncBrandProduct;
import com.cr.sync.domain.dto.LsdCountParam;
import com.cr.sync.domain.vo.LsdLSYJVo;
import com.cr.sync.domain.vo.LsdMTYXVo;
import com.cr.sync.mapper.TbSyncBrandProductMapper;
import com.cr.sync.service.ITbSyncBrandProductService;
import org.apache.ibatis.session.ExecutorType;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * 远程数据-品牌产品管理Service业务层处理
 *
 * @author tang
 * @date 2025-08-29
 */
@Service
public class TbSyncBrandProductServiceImpl implements ITbSyncBrandProductService
{
    @Resource
    private TbSyncBrandProductMapper tbSyncBrandProductMapper;

    @Resource
    private SqlSessionFactory sqlSessionFactory;

    @Override
    public void insertBatch(List<TbSyncBrandProduct> data) {
        if(data != null && !data.isEmpty()) {

            SqlSession sqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH, false);
            TbSyncBrandProductMapper mapper = sqlSession.getMapper(TbSyncBrandProductMapper.class);

            try {
                // 先删除旧数据
                mapper.deleteAll();

                // 添加新数据
                for(int i = 0; i < data.size(); i ++) {
                    mapper.insertTbSyncBrandProduct(data.get(i));

                    // 每500条提交一次事务
                    if (i > 0 && i % 500 == 0) {
                        sqlSession.flushStatements();
                        sqlSession.clearCache();
                    }
                }

                sqlSession.commit();
            } catch (Exception e) {
                sqlSession.rollback();
                throw new RuntimeException(e);
            } finally {
                sqlSession.close();
            }
        }
    }

    @Override
    public Map<String, Object> getLsyj(LsdCountParam param) {
        /*
        Integer page = param.getPage();
        Integer pageSize = param.getPageSize();
        if(page == null || page < 1) {
            page = 1;
        }
        if (pageSize == null || pageSize < 1) {
            pageSize = 10;
        }
        // 分页查询
        PageHelper.startPage(page, pageSize);
        List<LsdLSYJVo> lsdMTYXVos = tbSyncBrandProductMapper.selectLsyj(param.getArea());
        PageInfo<LsdLSYJVo> pageInfo = new PageInfo<>(lsdMTYXVos);
        PageHelper.clearPage();

        Map<String, Object> results = new HashMap<>();
        results.put("total", pageInfo.getTotal());
        results.put("data", pageInfo.getList());

        */

        String data = "[";
        data += "{\"id\":1,\"name\":\"番茄（西红柿）\",\"bodyName\":\"呼和浩特市昊美果蔬专业合作社\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2023-03-02\"},\n" +
                "{\"id\":2,\"name\":\"香菜\",\"bodyName\":\"呼和浩特市昊美果蔬专业合作社\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2021-04-22\"},\n" +
                "{\"id\":3,\"name\":\"油葫芦\",\"bodyName\":\"呼和浩特市昊美果蔬专业合作社\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2021-04-22\"},\n" +
                "{\"id\":4,\"name\":\"豆角\",\"bodyName\":\"呼和浩特市昊美果蔬专业合作社\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2021-04-22\"},\n" +
                "{\"id\":5,\"name\":\"西红柿\",\"bodyName\":\"呼和浩特市昊美果蔬专业合作社\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2021-04-22\"},\n" +
                "{\"id\":6,\"name\":\"馍片专用小麦粉\",\"bodyName\":\"呼和浩特中粮面业有限公司\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2021-02-23\"},\n" +
                "{\"id\":7,\"name\":\"福临门河套平原麦芯雪花小麦粉\",\"bodyName\":\"呼和浩特中粮面业有限公司\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2021-02-23\"},\n" +
                "{\"id\":8,\"name\":\"贝贝南瓜\",\"bodyName\":\"武川县圣丰农产品专业合作社\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2020-12-31\"},\n" +
                "{\"id\":9,\"name\":\"武川土豆\",\"bodyName\":\"武川县圣丰农产品专业合作社\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2020-12-31\"},\n" +
                "{\"id\":10,\"name\":\"金黄香3号大米\",\"bodyName\":\"内蒙古稼泰绿色农业开发有限公司\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2020-12-07\"},\n" +
                "{\"id\":11,\"name\":\"草鸡蛋\",\"bodyName\":\"武川县山林虫草鸡养殖专业合作社\",\"business\":\"2\",\"standard\":\"1\",\"getDate\":\"2020-11-29\"},\n" +
                "{\"id\":12,\"name\":\"山林虫草鸡\",\"bodyName\":\"武川县山林虫草鸡养殖专业合作社\",\"business\":\"2\",\"standard\":\"1\",\"getDate\":\"2020-11-29\"},\n" +
                "{\"id\":13,\"name\":\"胡麻油\",\"bodyName\":\"内蒙古久鼎食品有限公司\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2020-11-24\"},\n" +
                "{\"id\":14,\"name\":\"亚麻籽油\",\"bodyName\":\"内蒙古久鼎食品有限公司\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2020-11-24\"},\n" +
                "{\"id\":15,\"name\":\"雪花大燕麦片\",\"bodyName\":\"内蒙古塞宝燕麦食品有限公司\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2020-08-21\"},\n" +
                "{\"id\":16,\"name\":\"塞宝燕麦片\",\"bodyName\":\"内蒙古塞宝燕麦食品有限公司\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2020-08-21\"},\n" +
                "{\"id\":17,\"name\":\"武川土豆\",\"bodyName\":\"武川县迦南种植专业合作社\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2020-05-20\"},\n" +
                "{\"id\":18,\"name\":\"葵花子\",\"bodyName\":\"武川县迦南种植专业合作社\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2020-05-20\"},\n" +
                "{\"id\":19,\"name\":\"娃娃菜\",\"bodyName\":\"武川县日新种植专业合作社\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2020-01-15\"},\n" +
                "{\"id\":20,\"name\":\"生菜\",\"bodyName\":\"武川县日新种植专业合作社\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2020-01-15\"},\n" +
                "{\"id\":21,\"name\":\"莴笋\",\"bodyName\":\"武川县日新种植专业合作社\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2020-01-15\"},\n" +
                "{\"id\":22,\"name\":\"亚麻籽油\",\"bodyName\":\"内蒙古万利福生物科技有限公司\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2019-02-14\"},\n" +
                "{\"id\":23,\"name\":\"亚麻籽油\",\"bodyName\":\"内蒙古万利福生物科技有限公司\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2019-02-14\"},\n" +
                "{\"id\":24,\"name\":\"甜糯玉米\",\"bodyName\":\"内蒙古浩峰农业有限责任公司\",\"business\":\"1\",\"standard\":\"1\",\"getDate\":\"2018-12-26\"},\n" +
                "{\"id\":25,\"name\":\"番茄（西红柿）\",\"bodyName\":\"呼和浩特市三不小种植专业合作社\",\"business\":\"1\",\"standard\":\"2\",\"getDate\":\"2023-03-03\"},\n" +
                "{\"id\":26,\"name\":\"南美白对虾（淡水）\",\"bodyName\":\"内蒙古海缘生态科技有限公司\",\"business\":\"3\",\"standard\":\"2\",\"getDate\":\"2023-03-03\"},\n" +
                "{\"id\":27,\"name\":\"番茄（西红柿）\",\"bodyName\":\"呼和浩特市昊美果蔬专业合作社\",\"business\":\"1\",\"standard\":\"2\",\"getDate\":\"2023-03-03\"},\n" +
                "{\"id\":28,\"name\":\"南美白对虾（淡水）\",\"bodyName\":\"内蒙古海缘生态科技有限公司\",\"business\":\"3\",\"standard\":\"2\",\"getDate\":\"2023-03-03\"},\n" +
                "{\"id\":29,\"name\":\"黄瓜\",\"bodyName\":\"呼和浩特市里金佰种养殖农民专业合作社\",\"business\":\"1\",\"standard\":\"2\",\"getDate\":\"2023-03-03\"},";

        data += "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古阜丰生物科技有限公司\",\"name\":\"雪梅味精（谷氨酸钠含量≥99%）\",\"total\":10000,\"proNo\":\"LB-56-22010500076A\",\"getDate\":\"2025-01-28\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古阜丰生物科技有限公司\",\"name\":\"雪梅味精（谷氨酸钠含量≥80%）\",\"total\":50,\"proNo\":\"LB-56-22010500075A\",\"getDate\":\"2025-01-28\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古阜丰生物科技有限公司\",\"name\":\"阜丰U鲜味精（谷氨酸钠含量≥99%）\",\"total\":10000,\"proNo\":\"LB-56-22010500074A\",\"getDate\":\"2025-01-28\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古阜丰生物科技有限公司\",\"name\":\"阜丰U鲜味精（谷氨酸钠含量≥80%）\",\"total\":50,\"proNo\":\"LB-56-22010500073A\",\"getDate\":\"2025-01-28\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古阜丰生物科技有限公司\",\"name\":\"福瑞味精（谷氨酸钠含量≥99%）\",\"total\":10000,\"proNo\":\"LB-56-22010500072A\",\"getDate\":\"2025-01-28\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古阜丰生物科技有限公司\",\"name\":\"福瑞味精（谷氨酸钠含量≥80%）\",\"total\":50,\"proNo\":\"LB-56-22010500071A\",\"getDate\":\"2025-01-28\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"烤馍片藤椒牛肉味\",\"total\":100,\"proNo\":\"LB-51-21110516287A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"烤馍锅巴柠檬玫瑰盐风味\",\"total\":100,\"proNo\":\"LB-51-21110516286A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"采纳馍片麻辣牛肉风味\",\"total\":900,\"proNo\":\"LB-51-21110516285A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"采纳馍片烧烤风味\",\"total\":900,\"proNo\":\"LB-51-21110516284A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"采纳馍片孜然风味\",\"total\":900,\"proNo\":\"LB-51-21110516283A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"采纳馍片咖喱牛肉风味\",\"total\":900,\"proNo\":\"LB-51-21110516282A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"采纳馍片原味\",\"total\":900,\"proNo\":\"LB-51-21110516281A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"烤馍锅巴麻辣牛肉风味\",\"total\":1100,\"proNo\":\"LB-51-21110516280A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"烤馍锅巴香辣鸡肉风味\",\"total\":1100,\"proNo\":\"LB-51-21110516279A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"烤馍锅巴椒盐风味\",\"total\":1100,\"proNo\":\"LB-51-21110516278A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"烤馍锅巴酱汁牛肉风味\",\"total\":100,\"proNo\":\"LB-51-21110516277A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"烤馍锅巴芥末风味\",\"total\":50,\"proNo\":\"LB-51-21110516276A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"烤馍锅巴芝士风味\",\"total\":1100,\"proNo\":\"LB-51-21110516275A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"烤馍锅巴烧烤风味\",\"total\":1100,\"proNo\":\"LB-51-21110516274A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"烤馍锅巴比萨风味\",\"total\":800,\"proNo\":\"LB-51-21110516273A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"烤馍锅巴岩烧海苔风味\",\"total\":50,\"proNo\":\"LB-51-21110516272A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"烤馍锅巴孜然风味\",\"total\":900,\"proNo\":\"LB-51-21110516271A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"烤馍锅巴奶油风味\",\"total\":1100,\"proNo\":\"LB-51-21110516270A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"烤馍锅巴咖喱牛肉风味\",\"total\":1100,\"proNo\":\"LB-51-21110516269A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古美好食品有限责任公司\",\"name\":\"烤馍锅巴原味\",\"total\":50,\"proNo\":\"LB-51-21110516268A\",\"getDate\":\"2024-11-25\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古塞宝燕麦食品有限公司\",\"name\":\"雪花大燕麦片 \",\"total\":2000,\"proNo\":\"LB-14-23080514775A\",\"getDate\":\"2023-08-21\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古塞宝燕麦食品有限公司\",\"name\":\"雪花大燕麦片（塞宝）\",\"total\":8000,\"proNo\":\"LB-14-23080514776A\",\"getDate\":\"2023-08-21\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古稼泰农牧业开发有限责任公司\",\"name\":\"金黄香3号大米\",\"total\":520,\"proNo\":\"LB-03-20120516669A\",\"getDate\":\"2023-12-07\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古浩峰农业有限公司\",\"name\":\"甜糯玉米\",\"total\":1600,\"proNo\":\"LB-06-21120516434A\",\"getDate\":\"2024-12-26\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古浩峰农业有限公司\",\"name\":\"玉米粒\",\"total\":270,\"proNo\":\"LB-06-24120515691A\",\"getDate\":\"2024-12-26\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古浩峰农业有限公司\",\"name\":\"水果玉米\",\"total\":400,\"proNo\":\"LB-06-24120515690A\",\"getDate\":\"2024-12-26\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古草原花食品有限公司\",\"name\":\"香瓜子\",\"total\":231,\"proNo\":\"LB-20-23060513126A\",\"getDate\":\"2023-06-15\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"呼和浩特昌德和农牧业科技发展有限责任公司\",\"name\":\"西红柿（昌德和农庄+图形）\",\"total\":1000,\"proNo\":\"LB-15-22120514613A\",\"getDate\":\"2022-12-29\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"土默特左旗阿勒坦农牧业发展投资有限责任公司\",\"name\":\"草莓\",\"total\":200,\"proNo\":\"LB-15-24010500553A\",\"getDate\":\"2024-01-10\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"土默特左旗富国兴民种植农民专业合作社\",\"name\":\"土默川贝贝南瓜\",\"total\":450,\"proNo\":\"LB-15-24070507661A\",\"getDate\":\"2024-07-10\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"土默特左旗盛源泰种养殖农民专业合作社\",\"name\":\"塞外金沙西瓜\",\"total\":900,\"proNo\":\"LB-15-24070507660A\",\"getDate\":\"2024-07-10\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古华颐乐牧业科技有限公司\",\"name\":\"鲜羊奶 \",\"total\":400,\"proNo\":\"LB-33-25020500280A\",\"getDate\":\"2025-02-05\",\"business\":\"2\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"内蒙古华颐乐牧业科技有限公司\",\"name\":\"风味酸羊乳\",\"total\":450,\"proNo\":\"LB-33-25020500281A\",\"getDate\":\"2025-02-05\",\"business\":\"2\",\"standard\":\"1\"},\n" +
                "{\"area\":\"土默特左旗\",\"bodyName\":\"呼和浩特艾勒农业科技发展有限责任公司\",\"name\":\"蟹田大米\",\"total\":400,\"proNo\":\"LB-03-25040572685A\",\"getDate\":\"2025-04-07\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"托克托县\",\"bodyName\":\"托克托县亚圣农副产品加工农民专业合作社\",\"name\":\"托县豆腐（田肴）\",\"total\":104,\"proNo\":\"LB-08-21120519234A\",\"getDate\":\"2024-12-12\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"托克托县\",\"bodyName\":\"托克托县一溜湾红辣椒专业合作社\",\"name\":\"辣椒粉\",\"total\":150,\"proNo\":\"LB-56-23050507155A\",\"getDate\":\"2023-05-23\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"托克托县\",\"bodyName\":\"托克托县葡苑农副产品加工专业合作社\",\"name\":\"葡萄\",\"total\":4800,\"proNo\":\"LB-18-23070510566A\",\"getDate\":\"2023-07-05\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"托克托县\",\"bodyName\":\"托克托县兴祥盛种养殖农民专业合作社\",\"name\":\"西红柿\",\"total\":750,\"proNo\":\"LB-15-25010570652A\",\"getDate\":\"2025-01-15\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"托克托县\",\"bodyName\":\"托克托县郝家夭蔬菜基地专业合作社\",\"name\":\"托县苹果\",\"total\":1000,\"proNo\":\"LB-18-25010570655A\",\"getDate\":\"2025-01-15\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"和林格尔县\",\"bodyName\":\"内蒙古绿野农牧业发展有限公司\",\"name\":\"火龙果\",\"total\":250,\"proNo\":\"LB-18-22060519289A\",\"getDate\":\"2022-06-27\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"和林格尔县\",\"bodyName\":\"内蒙古绿野农牧业发展有限公司\",\"name\":\"沃柑\",\"total\":200,\"proNo\":\"LB-18-22060519290A\",\"getDate\":\"2022-06-27\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"和林格尔县\",\"bodyName\":\"内蒙古久鼎食品有限公司\",\"name\":\"胡麻油 （鼎和）\",\"total\":100,\"proNo\":\"LB-10-23110522154A\",\"getDate\":\"2023-11-24\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"和林格尔县\",\"bodyName\":\"内蒙古久鼎食品有限公司\",\"name\":\"亚麻籽油（鼎和）\",\"total\":312,\"proNo\":\"LB-10-23110522155A\",\"getDate\":\"2023-11-24\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"和林格尔县\",\"bodyName\":\"内蒙古宇航人生物工程技术有限公司\",\"name\":\"沙棘绿色生态果汁饮料\",\"total\":1000,\"proNo\":\"LB-40-22070510174A\",\"getDate\":\"2025-07-18\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"和林格尔县\",\"bodyName\":\"内蒙古宇航人生物工程技术有限公司\",\"name\":\"沙棘绿色果粉\",\"total\":20,\"proNo\":\"LB-41-22070510171A\",\"getDate\":\"2025-07-18\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"和林格尔县\",\"bodyName\":\"内蒙古宇航人生物工程技术有限公司\",\"name\":\"绿色生态沙棘果汁饮料\",\"total\":1500,\"proNo\":\"LB-41-22070510172A\",\"getDate\":\"2025-07-18\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"和林格尔县\",\"bodyName\":\"内蒙古宇航人生物工程技术有限公司\",\"name\":\"沙棘绿色生态原浆\",\"total\":500,\"proNo\":\"LB-41-22070510173A\",\"getDate\":\"2025-07-18\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"和林格尔县\",\"bodyName\":\"内蒙古华欧淀粉工业股份有限公司\",\"name\":\"马铃薯淀粉\",\"total\":4000,\"proNo\":\"LB-55-25040573024A\",\"getDate\":\"2025-04-23\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"清水河县\",\"bodyName\":\"内蒙古万兴宇食品有限责任公司\",\"name\":\"大樱桃\",\"total\":200,\"proNo\":\"LB-18-23060510423A\",\"getDate\":\"2023-06-30\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"清水河县\",\"bodyName\":\"内蒙古博煜农林科技开发有限公司\",\"name\":\"海红果苹果\",\"total\":800,\"proNo\":\"LB-18-23060508478A\",\"getDate\":\"2023-06-05\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"武川县塞丰马铃薯种业有限责任公司\",\"name\":\"马铃薯（塞丰乡）\",\"total\":418865,\"proNo\":\"LB-15-21100517957A\",\"getDate\":\"2024-10-30\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"武川县禾川绿色食品有限责任公司\",\"name\":\"武川莜面\",\"total\":20000,\"proNo\":\"LB-14-22120518207A\",\"getDate\":\"2022-12-30\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"武川县禾川绿色食品有限责任公司\",\"name\":\"胚芽燕麦米\",\"total\":200,\"proNo\":\"LB-14-22120518208A\",\"getDate\":\"2022-12-30\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"武川县晟源山茶专业合作社\",\"name\":\"沙棘茶\",\"total\":5,\"proNo\":\"LB-45-23060523709A\",\"getDate\":\"2023-06-05\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"武川县晟源山茶专业合作社\",\"name\":\"杭白菊茶（晟源绿牡丹）\",\"total\":3,\"proNo\":\"LB-45-23060523710A\",\"getDate\":\"2023-06-05\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"武川县西窑子种植专业合作社\",\"name\":\"莜面\",\"total\":33,\"proNo\":\"LB-14-23070509559A\",\"getDate\":\"2023-07-03\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"武川县百灵粮油贸易有限公司\",\"name\":\"百灵面粉\",\"total\":70,\"proNo\":\"LB-02-23120523188A\",\"getDate\":\"2023-12-18\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"武川县百灵粮油贸易有限公司\",\"name\":\"瑞雪粉\",\"total\":137,\"proNo\":\"LB-02-23120523187A\",\"getDate\":\"2023-12-18\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"内蒙古御品香粮油有限责任公司\",\"name\":\"武川莜面\",\"total\":1096,\"proNo\":\"LB-14-23120522480A\",\"getDate\":\"2023-12-31\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"武川县圣丰农产品专业合作社\",\"name\":\"武川土豆\",\"total\":2400,\"proNo\":\"LB-15-23120524984A\",\"getDate\":\"2023-12-31\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"武川县圣丰农产品专业合作社\",\"name\":\"贝贝南瓜\",\"total\":450,\"proNo\":\"LB-15-23120524985A\",\"getDate\":\"2023-12-31\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"武川县智邦谷物有限公司\",\"name\":\"大粒裸燕麦片\",\"total\":381,\"proNo\":\"LB-14-23120522151A\",\"getDate\":\"2023-12-31\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"武川县智邦谷物有限公司\",\"name\":\"胚芽燕麦米\",\"total\":153,\"proNo\":\"LB-14-23120522152A\",\"getDate\":\"2023-12-31\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"内蒙古旭丰农业科技有限公司\",\"name\":\"马铃薯（净薯旭丰）\",\"total\":1500,\"proNo\":\"LB-15-24010501153A\",\"getDate\":\"2024-01-20\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"内蒙古旭丰农业科技有限公司\",\"name\":\"小麦面粉（蒙龙骉+拼音）\",\"total\":85,\"proNo\":\"LB-02-24010501152A\",\"getDate\":\"2024-01-20\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"武川县万禾利生种植专业合作社\",\"name\":\"牛肉\",\"total\":200,\"proNo\":\"LB-26-21040503992A\",\"getDate\":\"2024-04-20\",\"business\":\"2\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"武川县万禾利生种植专业合作社\",\"name\":\"羊肉\",\"total\":200,\"proNo\":\"LB-27-21040503991A\",\"getDate\":\"2024-04-20\",\"business\":\"2\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"武川县山老区农畜产品专业合作社\",\"name\":\"燕麦粉\",\"total\":47,\"proNo\":\"LB-14-21050505996A\",\"getDate\":\"2024-05-25\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"呼和浩特蒙禾源菌业有限公司\",\"name\":\"香菇\",\"total\":79,\"proNo\":\"LB-21-23050505410A\",\"getDate\":\"2023-05-06\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"呼和浩特蒙禾源菌业有限公司\",\"name\":\"滑子菇\",\"total\":70,\"proNo\":\"LB-21-23050505409A\",\"getDate\":\"2023-05-06\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"呼和浩特蒙禾源菌业有限公司\",\"name\":\"大球盖菇\",\"total\":39,\"proNo\":\"LB-21-23050505408A\",\"getDate\":\"2023-05-06\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"武川县迦南种植专业合作社\",\"name\":\"葵花子\",\"total\":900,\"proNo\":\"LB-20-24060506786A\",\"getDate\":\"2024-06-25\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"武川县迦南种植专业合作社\",\"name\":\"武川土豆\",\"total\":30000,\"proNo\":\"LB-15-24060506787A\",\"getDate\":\"2024-06-25\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"呼和浩特市兴三农淀粉制品有限责任公司\",\"name\":\"马铃薯淀粉\",\"total\":4000,\"proNo\":\"LB-55-23060510202A\",\"getDate\":\"2023-06-28\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"武川县\",\"bodyName\":\"内蒙古蒙瑞兴粮油贸易有限责任公司\",\"name\":\"武川莜面\",\"total\":910,\"proNo\":\"LB-14-25030572190A\",\"getDate\":\"2025-03-20\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"新城区\",\"bodyName\":\"呼和浩特市中粮面业有限公司\",\"name\":\"馍片专用小麦粉\",\"total\":4800,\"proNo\":\"LB-02-21020502028A\",\"getDate\":\"2024-02-23\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"新城区\",\"bodyName\":\"呼和浩特市中粮面业有限公司\",\"name\":\"福临门河套平原麦芯雪花小麦粉\",\"total\":200,\"proNo\":\"LB-02-21020502029A\",\"getDate\":\"2024-02-23\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"新城区\",\"bodyName\":\"内蒙古兴盛源农业公司\",\"name\":\"葡萄\",\"total\":100,\"proNo\":\"LB-18-25010570851A\",\"getDate\":\"2025-01-20\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"赛罕区\",\"bodyName\":\"呼和浩特市轩达泰种植专业合作社\",\"name\":\"红心火龙果（弘芙悦）\",\"total\":100,\"proNo\":\"LB-18-23110523198A\",\"getDate\":\"2023-11-09\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"赛罕区\",\"bodyName\":\"内蒙古塞北粮仓农业发展有限公司\",\"name\":\"慢面粉（小麦粉）\",\"total\":600,\"proNo\":\"LB-02-22120518089A\",\"getDate\":\"2022-12-11\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"赛罕区\",\"bodyName\":\"内蒙古塞北粮仓农业发展有限公司\",\"name\":\"原味小麦粉(塞北粮仓+图形、慢面粉)\",\"total\":1200,\"proNo\":\"LB-02-22120518088A\",\"getDate\":\"2022-12-11\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"赛罕区\",\"bodyName\":\"内蒙古塞北粮仓农业发展有限公司\",\"name\":\"原味小麦粉（吃劲儿）\",\"total\":200,\"proNo\":\"LB-02-22120518087A\",\"getDate\":\"2022-12-11\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"赛罕区\",\"bodyName\":\"内蒙古塞北粮仓农业发展有限公司\",\"name\":\"农家面（小麦粉）\",\"total\":700,\"proNo\":\"LB-02-22120518086A\",\"getDate\":\"2022-12-11\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"赛罕区\",\"bodyName\":\"内蒙古塞北粮仓农业发展有限公司\",\"name\":\"饺子粉（小麦粉）\",\"total\":400,\"proNo\":\"LB-02-22120518085A\",\"getDate\":\"2022-12-11\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"赛罕区\",\"bodyName\":\"内蒙古塞北粮仓农业发展有限公司\",\"name\":\"雪花粉（小麦粉）\",\"total\":400,\"proNo\":\"LB-02-22120518084A\",\"getDate\":\"2022-12-11\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"赛罕区\",\"bodyName\":\"呼和浩特市昊美果蔬种植专业合作社\",\"name\":\"油葫芦\",\"total\":333,\"proNo\":\"LB-15-21040504134A\",\"getDate\":\"2024-04-21\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"赛罕区\",\"bodyName\":\"呼和浩特市昊美果蔬种植专业合作社\",\"name\":\"西红柿\",\"total\":900,\"proNo\":\"LB-15-21040504133A\",\"getDate\":\"2024-04-21\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"赛罕区\",\"bodyName\":\"内蒙古面面佳食品有限责任公司\",\"name\":\"雪花粉（小麦粉）大工+DAGONOI\",\"total\":1500,\"proNo\":\"LB-02-22090509731A\",\"getDate\":\"2022-09-13\",\"business\":\"5\",\"standard\":\"1\"},\n" +
                "{\"area\":\"赛罕区\",\"bodyName\":\"呼和浩特市赛音农业种植专业合作社\",\"name\":\"网纹甜瓜\",\"total\":250,\"proNo\":\"LB-15-23050505922A\",\"getDate\":\"2023-05-15\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"赛罕区\",\"bodyName\":\"内蒙古中天科技有限公司\",\"name\":\"黄瓜\",\"total\":100,\"proNo\":\"LB-15-24060505844A\",\"getDate\":\"2024-06-06\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"赛罕区\",\"bodyName\":\"内蒙古中天科技有限公司\",\"name\":\"辣椒\",\"total\":15,\"proNo\":\"LB-15-24060505845A\",\"getDate\":\"2024-06-06\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"赛罕区\",\"bodyName\":\"内蒙古中天科技有限公司\",\"name\":\"生菜\",\"total\":10,\"proNo\":\"LB-15-24060505846A\",\"getDate\":\"2024-06-06\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"赛罕区\",\"bodyName\":\"内蒙古中天科技有限公司\",\"name\":\"草莓\",\"total\":25,\"proNo\":\"LB-15-24060505843A\",\"getDate\":\"2024-06-06\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"赛罕区\",\"bodyName\":\"内蒙古中天科技有限公司\",\"name\":\"番茄\",\"total\":400,\"proNo\":\"LB-15-24060505847A\",\"getDate\":\"2024-06-06\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"赛罕区\",\"bodyName\":\"呼和浩特市绿华农业生产种植专业合作社\",\"name\":\"黄合少西红柿\",\"total\":500,\"proNo\":\"LB-15-25010570891A\",\"getDate\":\"2025-01-21\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"玉泉区\",\"bodyName\":\"呼和浩特市禾裕农业发展有限责任公司\",\"name\":\"西红柿\",\"total\":2250,\"proNo\":\"LB-15-24050504978A\",\"getDate\":\"2024-05-22\",\"business\":\"1\",\"standard\":\"1\"},\n" +
                "{\"area\":\"玉泉区\",\"bodyName\":\"呼和浩特市亿祥源种养殖农民专业合作社\",\"name\":\"西红柿\",\"total\":800,\"proNo\":\"LB-15-24100571259A\",\"getDate\":\"2024-10-30\",\"business\":\"1\",\"standard\":\"1\"},\n";

        data += "]";

        List<LsdLSYJVo> lsdLSYJVos = JSON.parseArray(data, LsdLSYJVo.class);
        // 区域过滤
        if(StringUtils.isNotBlank(param.getArea())) {
            lsdLSYJVos = lsdLSYJVos.stream().filter(lsdLSYJVo -> param.getArea().equals(lsdLSYJVo.getArea())).collect(Collectors.toList());
        }

        Map<String, Object> results = new HashMap<>();
        results.put("total", lsdLSYJVos.size());
        results.put("data", lsdLSYJVos);
        return results;
    }

    @Override
    public Map<String, Object> getMtyx(LsdCountParam param) {
        /*
        Integer page = param.getPage();
        Integer pageSize = param.getPageSize();
        if(page == null || page < 1) {
            page = 1;
        }
        if (pageSize == null || pageSize < 1) {
            pageSize = 10;
        }
        // 分页查询
        PageHelper.startPage(page, pageSize);
        List<LsdMTYXVo> lsdMTYXVos = tbSyncBrandProductMapper.selectMtyx(param.getArea());
        PageInfo<LsdMTYXVo> pageInfo = new PageInfo<>(lsdMTYXVos);
        PageHelper.clearPage();

        Map<String, Object> results = new HashMap<>();
        results.put("total", pageInfo.getTotal());
        results.put("data", pageInfo.getList());
         */


        String data = "[";
        data += "{\"id\":1,\"name\":\"赛罕鸡蛋\",\"brandName\":\"赛罕鸡蛋\",\"bodyName\":\"呼和浩特市赛罕区农牧水利局\",\"business\":\"2\",\"area\":\"赛罕区\",\"getDate\":\"\"},\n" +
                "{\"id\":2,\"name\":\"赛罕黄瓜\",\"brandName\":\"赛罕黄瓜\",\"bodyName\":\"呼和浩特市赛罕区农牧水利局\",\"business\":\"1\",\"area\":\"赛罕区\",\"getDate\":\"\"},\n" +
                "{\"id\":3,\"name\":\"赛罕火龙果\",\"brandName\":\"赛罕火龙果\",\"bodyName\":\"呼和浩特市赛罕区农牧水利局\",\"business\":\"1\",\"area\":\"赛罕区\",\"getDate\":\"\"},\n" +
                "{\"id\":4,\"name\":\"赛罕番茄\",\"brandName\":\"赛罕番茄\",\"bodyName\":\"呼和浩特市赛罕区农牧水利局\",\"business\":\"1\",\"area\":\"赛罕区\",\"getDate\":\"\"},\n" +
                "{\"id\":5,\"name\":\"托县番茄\",\"brandName\":\"托县番茄\",\"bodyName\":\"托克托县农牧局\",\"business\":\"1\",\"area\":\"托克托县\",\"getDate\":\"\"},\n" +
                "{\"id\":6,\"name\":\"托县驴肉\",\"brandName\":\"托县驴肉\",\"bodyName\":\"托克托县农牧局\",\"business\":\"2\",\"area\":\"托克托县\",\"getDate\":\"\"},\n" +
                "{\"id\":7,\"name\":\"和林燕麦\",\"brandName\":\"和林燕麦\",\"bodyName\":\"和林格尔县农畜产品质量安全中心\",\"business\":\"1\",\"area\":\"和林格尔县\",\"getDate\":\"\"},\n" +
                "{\"id\":8,\"name\":\"土默特左旗贝贝南瓜\",\"brandName\":\"土默特左旗贝贝南瓜\",\"bodyName\":\"土默特左旗农产品质量安全检测中心\",\"business\":\"1\",\"area\":\"土默特左旗\",\"getDate\":\"\"},\n" +
                "{\"id\":9,\"name\":\"托县大米\",\"brandName\":\"托县大米\",\"bodyName\":\"托克托县农牧局\",\"business\":\"1\",\"area\":\"托克托县\",\"getDate\":\"\"},\n" +
                "{\"id\":10,\"name\":\"清水河小香米\",\"brandName\":\"清水河小香米\",\"bodyName\":\"清水河县农产品质量安全检验检测站\",\"business\":\"1\",\"area\":\"清水河县\",\"getDate\":\"\"},\n" +
                "{\"id\":11,\"name\":\"土默特左旗大米\",\"brandName\":\"土默特左旗大米\",\"bodyName\":\"土默特左旗农产品质量安全检测中心\",\"business\":\"1\",\"area\":\"土默特左旗\",\"getDate\":\"\"},\n" +
                "{\"id\":12,\"name\":\"武川羊肚菌\",\"brandName\":\"武川羊肚菌\",\"bodyName\":\"武川县经济作物工作站\",\"business\":\"1\",\"area\":\"武川县\",\"getDate\":\"\"},\n" +
                "{\"id\":13,\"name\":\"武川莜面\",\"brandName\":\"武川莜面\",\"bodyName\":\"武川县经济作物工作站\",\"business\":\"1\",\"area\":\"武川县\",\"getDate\":\"\"},\n" +
                "{\"id\":14,\"name\":\"土默特左旗对虾\",\"brandName\":\"土默特左旗对虾\",\"bodyName\":\"土默特左旗农产品质量安全检测中心\",\"business\":\"3\",\"area\":\"土默特左旗\",\"getDate\":\"\"},\n" +
                "{\"id\":15,\"name\":\"武川大球盖菇\",\"brandName\":\"武川大球盖菇\",\"bodyName\":\"武川县经济作物工作站\",\"business\":\"1\",\"area\":\"武川县\",\"getDate\":\"\"},\n" +
                "{\"id\":16,\"name\":\"清水河黄米\",\"brandName\":\"清水河黄米\",\"bodyName\":\"清水河县农产品质量安全检验检测站\",\"business\":\"1\",\"area\":\"清水河县\",\"getDate\":\"\"},\n" +
                "{\"id\":17,\"name\":\"毕克齐大紫李\",\"brandName\":\"毕克齐大紫李\",\"bodyName\":\"土默特左旗农产品质量安全检测中心\",\"business\":\"1\",\"area\":\"土默特左旗\",\"getDate\":\"\"},\n" +
                "{\"id\":18,\"name\":\"和林亚麻籽\",\"brandName\":\"和林亚麻籽\",\"bodyName\":\"和林格尔县农畜产品质量安全中心\",\"business\":\"1\",\"area\":\"和林格尔县\",\"getDate\":\"\"},\n" +
                "{\"id\":19,\"name\":\"托县黄河鲤鱼\",\"brandName\":\"托县黄河鲤鱼\",\"bodyName\":\"托克托县农牧局\",\"business\":\"3\",\"area\":\"托克托县\",\"getDate\":\"\"},\n" +
                "{\"id\":20,\"name\":\"玉泉番茄\",\"brandName\":\"玉泉番茄\",\"bodyName\":\"玉泉区农牧和科技局\",\"business\":\"1\",\"area\":\"玉泉区\",\"getDate\":\"\"},\n" +
                "{\"id\":21,\"name\":\"托县稻田蟹\",\"brandName\":\"托县稻田蟹\",\"bodyName\":\"托克托县农牧局\",\"business\":\"3\",\"area\":\"托克托县\",\"getDate\":\"\"},\n" +
                "{\"id\":22,\"name\":\"武川马铃薯\",\"brandName\":\"武川马铃薯\",\"bodyName\":\"武川县经济作物工作站\",\"business\":\"1\",\"area\":\"武川县\",\"getDate\":\"\"},\n" +
                "{\"id\":23,\"name\":\"托县猪肉\",\"brandName\":\"托县猪肉\",\"bodyName\":\"托克托县农牧局\",\"business\":\"2\",\"area\":\"托克托县\",\"getDate\":\"\"},\n" +
                "{\"id\":24,\"name\":\"托县辣椒\",\"brandName\":\"托县辣椒\",\"bodyName\":\"托克托县农牧局\",\"business\":\"1\",\"area\":\"托克托县\",\"getDate\":\"\"},\n" +
                "{\"id\":25,\"name\":\"土默特左旗西瓜\",\"brandName\":\"土默特左旗西瓜\",\"bodyName\":\"土默特左旗农产品质量安全检测中心\",\"business\":\"1\",\"area\":\"土默特左旗\",\"getDate\":\"\"},\n" +
                "{\"id\":26,\"name\":\"武川滑子菇\",\"brandName\":\"武川滑子菇\",\"bodyName\":\"武川县经济作物工作站\",\"business\":\"1\",\"area\":\"武川县\",\"getDate\":\"\"},\n" +
                "{\"id\":27,\"name\":\"土默特左旗香菇\",\"brandName\":\"土默特左旗香菇\",\"bodyName\":\"土默特左旗农产品质量安全检测中心\",\"business\":\"1\",\"area\":\"土默特左旗\",\"getDate\":\"\"},\n" +
                "{\"id\":28,\"name\":\"和林亚麻籽油\",\"brandName\":\"和林亚麻籽油\",\"bodyName\":\"和林格尔县农畜产品质量安全中心\",\"business\":\"1\",\"area\":\"和林格尔县\",\"getDate\":\"\"},\n" +
                "{\"id\":29,\"name\":\"托县小麦粉\",\"brandName\":\"托县小麦粉\",\"bodyName\":\"托克托县农牧局\",\"business\":\"1\",\"area\":\"托克托县\",\"getDate\":\"\"},\n" +
                "{\"id\":30,\"name\":\"口肯板香瓜\",\"brandName\":\"口肯板香瓜\",\"bodyName\":\"土默特左旗农产品质量安全检测中心\",\"business\":\"1\",\"area\":\"土默特左旗\",\"getDate\":\"\"},\n" +
                "{\"id\":31,\"name\":\"武川香菇\",\"brandName\":\"武川香菇\",\"bodyName\":\"武川县经济作物工作站\",\"business\":\"1\",\"area\":\"武川县\",\"getDate\":\"\"},\n" +
                "{\"id\":32,\"name\":\"托县香瓜\",\"brandName\":\"托县香瓜\",\"bodyName\":\"托克托县农牧局\",\"business\":\"1\",\"area\":\"托克托县\",\"getDate\":\"\"},\n" +
                "{\"id\":33,\"name\":\"土默特左旗玉米\",\"brandName\":\"土默特左旗玉米\",\"bodyName\":\"土默特左旗农产品质量安全检测中心\",\"business\":\"1\",\"area\":\"土默特左旗\",\"getDate\":\"\"},\n" +
                "{\"id\":34,\"name\":\"新城蜂蜜\",\"brandName\":\"新城蜂蜜\",\"bodyName\":\"呼和浩特市新城区农牧水利局\",\"business\":\"2\",\"area\":\"新城区\",\"getDate\":\"\"},\n" +
                "{\"id\":35,\"name\":\"可沁村小西瓜\",\"brandName\":\"可沁村小西瓜\",\"bodyName\":\"土默特左旗农产品质量安全检测中心\",\"business\":\"1\",\"area\":\"土默特左旗\",\"getDate\":\"\"},\n" +
                "{\"id\":36,\"name\":\"武川燕麦\",\"brandName\":\"武川燕麦\",\"bodyName\":\"武川县经济作物工作站\",\"business\":\"1\",\"area\":\"武川县\",\"getDate\":\"\"},\n" +
                "{\"id\":37,\"name\":\"清水河花菇\",\"brandName\":\"清水河花菇\",\"bodyName\":\"清水河县食用菌协会\",\"business\":\"1\",\"area\":\"清水河县\",\"getDate\":\"\"}\n";

        data += "{\"brandName\":\"托县玉米\",\"name\":\"托县玉米\",\"business\":\"1\",\"area\":\"托克托县\",\"bodyName\":\"托克托县农畜产品质量安全中心\",\"certNo\":\"CAQS-MTYX-20250007\",\"year\":2025},\n" +
                "{\"brandName\":\"托县贝贝瓜\",\"name\":\"托县贝贝瓜\",\"business\":\"1\",\"area\":\"托克托县\",\"bodyName\":\"托克托县农畜产品质量安全中心\",\"certNo\":\"CAQS-MTYX-20250008\",\"year\":2025},\n" +
                "{\"brandName\":\"托县草鱼\",\"name\":\"托县草鱼\",\"business\":\"3\",\"area\":\"托克托县\",\"bodyName\":\"托克托县农畜产品质量安全中心\",\"certNo\":\"CAQS-MTYX-20250009\",\"year\":2025},\n" +
                "{\"brandName\":\"和林胡麻油\",\"name\":\"和林胡麻油\",\"business\":\"1\",\"area\":\"和林格尔县\",\"bodyName\":\"和林格尔县农畜产品质量安全中心\",\"certNo\":\"CAQS-MTYX-20250010\",\"year\":2025},\n" +
                "{\"brandName\":\"和林白菜\",\"name\":\"和林白菜\",\"business\":\"1\",\"area\":\"和林格尔县\",\"bodyName\":\"和林格尔县农畜产品质量安全中心\",\"certNo\":\"CAQS-MTYX-20250011\",\"year\":2025},\n" +
                "{\"brandName\":\"武川贝贝南瓜\",\"name\":\"武川贝贝南瓜\",\"business\":\"1\",\"area\":\"武川县\",\"bodyName\":\"武川县农畜产品质量安全中心\",\"certNo\":\"CAQS-MTYX-20250012\",\"year\":2025},\n" +
                "{\"brandName\":\"武川南瓜\",\"name\":\"武川南瓜\",\"business\":\"1\",\"area\":\"武川县\",\"bodyName\":\"武川县农畜产品质量安全中心\",\"certNo\":\"CAQS-MTYX-20250013\",\"year\":2025},\n" +
                "{\"brandName\":\"呼和浩特高原蓝莓\",\"name\":\"呼和浩特高原蓝莓\",\"business\":\"1\",\"area\":\"土默特左旗\",\"bodyName\":\"土默特左旗农牧业综合服务保障中心\",\"certNo\":\"CAQS-MTYX-20250280\",\"year\":2025},\n" +
                "{\"brandName\":\"托县豆腐\",\"name\":\"托县豆腐\",\"business\":\"4\",\"area\":\"托克托县\",\"bodyName\":\"托克托县农畜产品质量安全中心\",\"certNo\":\"CAQS-MTYX-20250281\",\"year\":2025},\n" +
                "{\"brandName\":\"清水河海红果 \",\"name\":\"清水河海红果 \",\"business\":\"1\",\"area\":\"清水河县\",\"bodyName\":\"清水河县农牧技术推广中心\",\"certNo\":\"CAQS-MTYX-20250282\",\"year\":2025},\n" +
                "{\"brandName\":\"清水河黑猪肉\",\"name\":\"清水河黑猪肉\",\"business\":\"2\",\"area\":\"清水河县\",\"bodyName\":\"清水河县农牧技术推广中心\",\"certNo\":\"CAQS-MTYX-20250283\",\"year\":2025},\n" +
                "{\"brandName\":\"清水河草坡羊\",\"name\":\"清水河草坡羊\",\"business\":\"2\",\"area\":\"清水河县\",\"bodyName\":\"清水河县农牧技术推广中心\",\"certNo\":\"CAQS-MTYX-20250284\",\"year\":2025}\n";

        data += "]";
        List<LsdMTYXVo> lsdMTYXVos = JSON.parseArray(data, LsdMTYXVo.class);

        // 区域过滤
        if(StringUtils.isNotBlank(param.getArea())) {
            lsdMTYXVos = lsdMTYXVos.stream().filter(lsdMTYXVo -> lsdMTYXVo.getArea().equals(param.getArea())).collect(Collectors.toList());
        }

        Map<String, Object> results = new HashMap<>();
        results.put("total", lsdMTYXVos.size());
        results.put("data", lsdMTYXVos);

        return results;
    }

}
